﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RolInsertForm.aspx.cs" Inherits="UILGestion.Seguridad.RolInsertForm" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<%@ Register src="../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>

<%@ Register assembly="CustomControls" namespace="CustomControls" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

 table.MsoNormalTable
	{font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	}
 p.MsoNormal
	{margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;
            margin-left: 0cm;
            margin-right: 0cm;
            margin-top: 0cm;
        }
        .style1
        {
            font-size: large;
        }
        </style>
</head>
<body>
  
  
    <form id="form1" runat="server">

      <input id="type" type="hidden" runat="server" />
    <uc1:menuCtrl ID="menuCtrl1" runat="server" />
       
        <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
        EnablePartialRendering="true"  EnablePageMethods="true" EnableScriptGlobalization="true"/>
            

<asp:Label ID="Label1" runat="server" Text="Registro Rol" 
            style="font-size: large; color: #960818"></asp:Label>

    
                 <table  width="100%">
                 <tr>
                 <td  width="80%">
                   <table >
<tr>

<td>
    <asp:Button ID="saveButton" runat="server" Text="Guardar"  Font-Size="X-Small" CssClass="ms-crm-List-Header" 
       OnClick="btnSaveContinue_Click"     /></td>
<td>
    <asp:Button ID="cancelarButton" runat="server" Text="Cancelar"  Font-Size="X-Small" CssClass="ms-crm-List-Header" 
       OnClick="btnSaveContinue_Click" Width="80px" /></td>
        <td></td>
        <td>
    <asp:Button ID="refreshButton" runat="server" Text="Restablecer" CssClass="ms-crm-List-Header"   onclick="refreshButton_Click"  Font-Size="X-Small"
          /></td>  <%--onclick="refreshButton_Click" --%>
 
</tr>
</table>
                 </td>
                 <td>
               
                 </td>
                 </tr>
                 </table>
               
        <hr />


    <input id="idFormularioRolList" type="hidden"  runat="server"/>
    <input id="internalid" type="hidden"  runat="server"/>
    <input id="formularioid" type="hidden"  runat="server"/>
    
    
     <asp:Panel ID="Panel1" runat="server"
                Width="100%"    Font-Size="X-Small"
                 font-names="Arial" >
   
 <table >
        <tr>
            <td>
                Nombre:</td>
            <td>
                <cc1:PostTextBox ID="descripcionTextBox" runat="server" Width="300px"></cc1:PostTextBox>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            </tr>
            <tr>
            <td>
                Activo:</td>
            <td>
                <asp:CheckBox ID="activoChk" runat="server" />
            </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            
     
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
            
     
    </table>
    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
    <asp:TabPanel runat="server" HeaderText="Formularios" ID="TabPanel1">
    
    <ContentTemplate>
    <asp:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0" CssClass="">
    <asp:TabPanel runat="server" HeaderText="Transacciones" ID="TabPanel3"><ContentTemplate>
    
    <asp:UpdatePanel ID="forumlarioUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
    <asp:GridView 
                 ID="formularioGridView" runat="server" 
                 AutoGenerateColumns="False" 
                 CellPadding="4" 
                 DataKeyNames="idInternal" 
                 Font-Size="X-Small" 
                 ForeColor="#333333" 
                 onrowcancelingedit="CancelItem" 
                 onrowediting="EditItem" 
                 OnRowUpdating="UpdateItem" 
                 ShowHeaderWhenEmpty="True">
        <EditRowStyle 
                 BackColor="#FFFF99" BorderStyle="Outset" /><HeaderStyle backcolor="#DFE8F6" 
                 BorderColor="LightSteelBlue" Font-Bold="True" forecolor="#336699" />
        <FooterStyle 
                 BackColor="#FFFF99" BorderStyle="Outset" />
        <Columns>
            <asp:TemplateField HeaderStyle-Width="350px" HeaderText="formulario">
                <ItemTemplate><asp:Label ID="descripcionLabel" runat="server" 
                        BackColor="Transparent" Text='<%# Eval("formulario")%>'></asp:Label></ItemTemplate>
                <EditItemTemplate><asp:Label ID="descripcionEditLabel" runat="server" 
                        BackColor="Transparent" Text='<%# Eval("formulario")%>'></asp:Label></EditItemTemplate></asp:TemplateField>
            <asp:TemplateField HeaderStyle-Width="250px" HeaderText="Acceso"><ItemTemplate>
                    <asp:Label ID="accesoLabel" runat="server" BackColor="Transparent" 
                    Text='<%# Eval("acceso")%>'></asp:Label></ItemTemplate>
                         <EditItemTemplate>
                         <cc1:PostTextBox ID="accesoEditTextBox" runat="server" BackColor="Transparent" 
                                 ReadOnly="true" Text='<%# Eval("idAcceso")%>' Width="0px">
                         </cc1:PostTextBox>
                         <cc1:DropDownCC ID="accesoEditDropDownList" runat="server" 
                                 DataTextField="descripcion" DataValueField="idInternal" Font-Size="X-Small" 
                                 Width="250px"></cc1:DropDownCC></EditItemTemplate></asp:TemplateField>
            <asp:CommandField ButtonType="Image" CancelImageUrl="~/Images/cancel.gif" 
                EditImageUrl="~/Images/edit.gif" ShowEditButton="true" 
                UpdateImageUrl="~/Images/update.gif" />
            <asp:TemplateField><ItemTemplate></ItemTemplate>
                <FooterTemplate>
                    <asp:Button ID="addProvAdd" runat="server" OnClick="AddObraItem" 
                        Text="Add" /></FooterTemplate></asp:TemplateField></Columns></asp:GridView>
                         
                         
                         
                         
                         
</ContentTemplate>
</asp:UpdatePanel>


                         
                         
            
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel runat="server" HeaderText="Listas" ID="TabPanel4"><ContentTemplate>
    
    <asp:UpdatePanel ID="UpdatePanel12" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <asp:GridView 
                 ID="ListaGridView" runat="server" 
                 AutoGenerateColumns="False" 
                 CellPadding="4" 
                 DataKeyNames="idInternal" 
                 Font-Size="X-Small" 
                 ForeColor="#333333" 
                 onrowcancelingedit="CancelListaItem" 
                 onrowediting="EditListaItem" 
                 OnRowUpdating="UpdateListaItem" 
                 ShowHeaderWhenEmpty="True"><EditRowStyle 
                 BackColor="#FFFF99" BorderStyle="Outset" /><HeaderStyle backcolor="#DFE8F6" 
                 BorderColor="LightSteelBlue" Font-Bold="True" forecolor="#336699" /><FooterStyle 
                 BackColor="#FFFF99" BorderStyle="Outset" />
                 
                 
                 <Columns>
                 
                 
                 <asp:TemplateField                      HeaderText="formulario" HeaderStyle-Width="350px">
                 
                 <ItemTemplate>
                 <asp:Label ID="descripcionLabel" 
                     runat="server" BackColor="Transparent" Text='<%# Eval("formulario")%>'></asp:Label></ItemTemplate>
                     <EditItemTemplate>
                     <asp:Label ID="descripcionEditLabel" 
                     runat="server" BackColor="Transparent" Text='<%# Eval("formulario")%>'></asp:Label>
                     </EditItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField    HeaderText="Acceso" HeaderStyle-Width="250px">
                     <ItemTemplate>
                     <asp:Label ID="accesoLabel" runat="server" 
                         BackColor="Transparent" Text='<%# Eval("acceso")%>'>
                     </asp:Label>
                   </ItemTemplate>
                         <EditItemTemplate>
                         <cc1:PostTextBox ID="accesoEditTextBox" Width="0px" runat="server" ReadOnly="true" BackColor="Transparent" Text='<%# Eval("idAcceso")%>' >
                         </cc1:PostTextBox>
                         <cc1:DropDownCC ID="accesoEditDropDownList" runat="server" Font-Size="X-Small"
                          DataTextField="descripcion" 
                          DataValueField="idInternal"
                              Width="250px">
                             

                         </cc1:DropDownCC>
                     </EditItemTemplate>
                    </asp:TemplateField><asp:CommandField 
                     ButtonType="Image" CancelImageUrl="~/Images/cancel.gif" 
                     EditImageUrl="~/Images/edit.gif" ShowEditButton="true" 
                     UpdateImageUrl="~/Images/update.gif" /><asp:TemplateField><ItemTemplate></ItemTemplate>
                     
                     
                     <FooterTemplate><asp:Button 
                         ID="addProvAdd" runat="server" OnClick="AddObraItem" Text="Add" /></FooterTemplate></asp:TemplateField></Columns></asp:GridView>
                         
                         
                         
                         
                         </ContentTemplate>
                         
                         
                         </asp:UpdatePanel>
                         
                         
            
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>




                  
           
</ContentTemplate>              
                         
                         

</asp:TabPanel><asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Permisos" >
   <ContentTemplate>
   <asp:Panel runat="server" ID="Presupuesto" GroupingText="Presupuestos" >
   
    <table>
       <tr>
            
            <td>
                Permitir Aprobar Presupuestos</td>
            <td>
                
                <cc1:DropDownCC ID="nivelPresupuestoDropDownList" runat="server"   Font-Size="X-Small"
                    Width="200px">
                    

                    <asp:ListItem Value="0">--Sin nivel de Aprobacion--</asp:ListItem>
                    

                    <asp:ListItem Value="1">Aprobacion 1</asp:ListItem>
                    

                    <asp:ListItem Value="2">Aprobacion 2</asp:ListItem>
                   
                    
 
                    

                   
                </cc1:DropDownCC>
            </td>
        </tr>

  <tr>
            <td>
                Permitir Aprobar Comparativos</td>
            <td>
               
                
                <br />
                <asp:UpdatePanel ID="nivelCompUpdatePanel" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                   <cc1:DropDownCC ID="nivelComparativoDropDownList" runat="server" 
                    AutoPostBack="true"  Font-Size="X-Small"
                    Width="200px" 
                        onselectedindexchanged="nivelComparativoDropDownList_SelectedIndexChanged">
                       

                    <asp:ListItem Value="0">--Sin nivel de Aprobacion--</asp:ListItem>
                       

                    <asp:ListItem Value="1">Aprobacion 1</asp:ListItem>
                       

                    <asp:ListItem Value="2">Aprobacion 2</asp:ListItem>
                       

                     <asp:ListItem Value="3">Aprobacion 3</asp:ListItem>
                       

                 </cc1:DropDownCC>
                 <br />
                   
                   <span class="style1"> <asp:Label ID="simbolLabel" runat="server" Text="S/." /></span><cc1:PostTextBox ID="montoTextBox" runat="server" DataType="Double" Visible="false"></cc1:PostTextBox>
                (-1) sin restricciones.
                </ContentTemplate>

                </asp:UpdatePanel>
               


            </td>
           
        </tr>

 <tr>
            <td>
                Permitir Aprobar O/C</td>
            <td>
                <asp:CheckBox ID="AprobarOCCheckBox" runat="server" />
            </td>
            
        </tr>
        </table>
   </asp:Panel>
     <asp:Panel runat="server" ID="Panel2" GroupingText="Rendicion Caja Chica" >
   <table>
      
         <tr>
            <td>
                Permitir Aprobar Rendicion Caja Chica</td>
            <td>
                <asp:CheckBox ID="bitAprobarCheckBox" runat="server"  />
            </td>
            
        </tr>
         <tr>
            <td>
                Permitir Visto Bueno Caja Chica</td>
            <td>
                <asp:CheckBox ID="bitVistoBuenoCajaChicachk" runat="server"   />
            </td>
            
        </tr>
         <tr>
            <td>
                Permitir Registrar Deposito Caja Chica</td>
            <td>
                <asp:CheckBox ID="bitDepositoCajaChicaCheckBox" runat="server"   />
            </td>
            
        </tr>

      
   </table>
   </asp:Panel>  
    <asp:Panel runat="server" ID="Panel3" GroupingText="Kardex" >
   <table>
       <tr>
            <td>
                Permitir Aperturar Kardex</td>
            <td>
                <asp:CheckBox ID="bitkardexCHK" runat="server" />
            </td>
            
        </tr>
    </table>
   </asp:Panel>

   
</ContentTemplate>
</asp:TabPanel></asp:TabContainer>

   
   </asp:Panel>
    </form>
    
</body>
</html>
